package es.agroservicio.Agroservicio.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "categoria")
public class Category {

	@Id
	@Column(name = "Nombre")
	@NotEmpty
	@Length(max = 100)
	private String name;
	
	@Column(name = "Notas")
	@Length(max = 255)
	private String notes;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

}
